package com.san.school.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.san.school.mapper.CourseTeacherMapper;
import com.san.school.entity.CourseTeacherExample;
import com.san.school.entity.CourseTeacher;
import com.san.school.service.CourseTeacherService;
/**
 * ClassName:CourseTeacherServiceImpl
 * PackageName:com.san.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/6 17:07
 * 
 */
 
 
@Service
public class CourseTeacherServiceImpl implements CourseTeacherService{

    @Resource
    private CourseTeacherMapper courseTeacherMapper;

    @Override
    public long countByExample(CourseTeacherExample example) {
        return courseTeacherMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CourseTeacherExample example) {
        return courseTeacherMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer courseid,Integer tid) {
        return courseTeacherMapper.deleteByPrimaryKey(courseid,tid);
    }

    @Override
    public int insert(CourseTeacher record) {
        return courseTeacherMapper.insert(record);
    }

    @Override
    public int insertSelective(CourseTeacher record) {
        return courseTeacherMapper.insertSelective(record);
    }

    @Override
    public List<CourseTeacher> selectByExample(CourseTeacherExample example) {
        return courseTeacherMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(CourseTeacher record,CourseTeacherExample example) {
        return courseTeacherMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(CourseTeacher record,CourseTeacherExample example) {
        return courseTeacherMapper.updateByExample(record,example);
    }

}
